<div class="content_box">
  <h1>Lista de Atletas</h1>
  <div class="right_corner">
  <?php if ($sf_user->isSuperAdmin()): ?>
    <a class="contentbox_btn darkblue" href="<?php echo url_for('user/new') ?>">Novo</a>
    <input type="hidden" name="is_super_admin"/>
  <?php endif ?>
  </div>
  <div class="content">
    <table>
      <thead>
        <tr>
          <th>Usu&aacute;rio</th>
          <th>Primeiro nome</th>
          <th>Sobrenome</th>
          <th>Criado em</th>
          <th>&Uacute;ltimo login</th>
          <th>Ativo</th>
          <th>Administrador</th>
        </tr>
      </thead>
      <tbody>
      <?php foreach ($sf_guard_user_list as $sf_guard_user): ?>
        <tr>
          <td>
          <?php echo link_to($sf_guard_user->getUsername(), '@show_user_by_username?username='.$sf_guard_user->getUsername(), array('class' => 'ajaxLink')) ?>
          </td>
          <td><?php echo $sf_guard_user->getProfile()->getFirstName() ?></td>
          <td><?php echo $sf_guard_user->getProfile()->getLastName() ?></td>
          <td><?php echo $sf_guard_user->getCreatedAt('h:m:s d/M/y') ?></td>
          <td><?php echo $sf_guard_user->getLastLogin('h:m:s d/M/y') ?></td>
          <td><input type="checkbox" disabled="disabled" <?php if ($sf_guard_user->getIsActive()) echo 'checked="checked"' ?>/></td>
          <td><input type="checkbox" disabled="disabled" <?php if ($sf_guard_user->getIsSuperAdmin()) echo 'checked="checked"' ?>/></td>
        </tr>        <?php endforeach; ?>
      </tbody>
    </table>
  </div>
</div>
